﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="detail.aspx.cs" Inherits="detail" Title="Untitled Page" EnableViewState="false" %>

<%@ Register Src="~/UserControls/ucMenuLeft.ascx" TagName="MenuLeft" TagPrefix="uc" %>
<%@ Register Src="~/UserControls/ucPayment.ascx" TagName="Payment" TagPrefix="uc" %>
<%@ Register Src="~/UserControls/ucRecruitment.ascx" TagName="Recruitment" TagPrefix="uc" %>
<%@ Register Src="~/UserControls/PagingDetail.ascx" TagName="Paging" TagPrefix="uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentCss" runat="Server">
    <link href="css/listing.css" rel="stylesheet" type="text/css" />
    <link href="css/detail.css" rel="stylesheet" type="text/css" />
    <%--lightbox--%>
    <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

    <script src="js/prototype.js" type="text/javascript"></script>

    <script src="js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>

    <script src="js/lightbox.js" type="text/javascript"></script>

    <%--lightbox--%>
    <script language="JavaScript" type="text/javascript">
	<!--
	function openWin(ImageID,ImangeName){
		var qrystring
		qrystring = "review.aspx?iid="+ImageID+"&in="+ImangeName
		child=open(qrystring,"child","width=510,height=560");
		}
		// -->
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentFooter" runat="Server">
            <%=strFooter %>
            <div style="height:10px;">&nbsp;</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMenu" runat="Server">
    <uc:MenuLeft ID="MenuLeft1" runat="server" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentMain" runat="Server">
    <div class="msg" id="msg" runat="server" visible=false></div>
    <div class="detail">
        <%=strContent %>
        <div class="list-page2" <%=(Request["cp"]!=null && Request["cp"]!="1")?"style=\"display:none;\"":"" %>>
            <p class="sendpage fr">
                <a href="" id="emailFriend" runat="server">Gởi trang này</a></p>
            <p class="print fr">
                <a href="detail_print.aspx?aid=<%=Request["aid"] %>&ckid=<%=SessionManager.GetCookie() %>">In trang này</a></p>
            <p class="save fr">
                <a href="user_fav_add.aspx?a=add&amp;dt=2&amp;fid=<%=Request["aid"] %>&amp;ckid=<%=SessionManager.GetCookie() %>">Lưu trang này</a></p>
            <p class="google fr">
                <a href="#">Google</a></p>
            <p class="yahoo fr">
                <a href="#">MyYahoo</a></p>
        </div>
        <div id="listImage">
        </div>
        <%--Item page--%>
        <uc:Paging ID="Paging1" runat="server" />
        <%--//Item page--%>
        <div class="list-page2 end">
            <p class="sendpage fr">
                <a href="#">Gởi trang này</a></p>
            <p class="print fr">
                <a href="detail_print.aspx?aid=<%=Request["aid"] %>&ckid=<%=SessionManager.GetCookie() %>">In trang này</a></p>
            <p class="save fr">
                <a href="user_fav_add.aspx?a=add&amp;dt=2&amp;fid=<%=Request["aid"] %>&amp;ckid=<%=SessionManager.GetCookie() %>">Lưu trang này</a></p>
        </div>
        <%--Other post--%>
        <%=strOtherPost%>
        <!--//Other post-->
    </div>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentLeft" runat="Server">
    <uc:Payment ID="Payment1" runat="Server"></uc:Payment>
    <%--<uc:Recruitment ID="Recruitment1" runat="Server"></uc:Recruitment>--%>

    <script language="javascript" type="text/javascript">
function GetData() 
{
    detail.GetString(<%=Request["aid"] %>, <%=Request["cp"]==null?"1":Request["cp"] %>,callback); 
}
function callback(response) 
{
    document.getElementById("listImage").innerHTML = response.value;
}
GetData();
    </script>

</asp:Content>
